
#include "stdafx.h"
#include "HRKSkin.h"

CHrkSkin::CHrkSkin()
{
	m_pSkin = NULL;
	m_boneVec.clear();
}

void CHrkSkin::Init( IGameSkin* pSkin )
{
	m_pSkin = pSkin;

	int nSkinBoneCount = m_pSkin->GetTotalSkinBoneCount();
	for( int i = 0;i<nSkinBoneCount;i++)
	{
		IGameNode* boneNode = m_pSkin->GetIGameBone( i,true );
		m_boneVec.push_back( boneNode );
	}
}